import request from '../utils/request';
export const paraData = query => {
    return request({
        url: '/api/srm/paradic/doMain',
        method: 'post',
        // url: './json/paralist.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/srm/paradic/doAdd',
        method: 'post',
        // url: './json/true.json',
        // method: 'get',
        data: query,
    });
};
export const doUpdate = query => {
    return request({
        url: '/api/srm/paradic/doUpdate',
        method:'post',
        // url: './json/errow.json',
        // method: 'get',
        data: query
    });
};
export const doDelete = query => {
    return request({
        url: '/api/srm/paradic/doDelete',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        params: query
    });
};
//查询一个技术分类的基本信息
export const selectByparaId = query => {
    return request({
        url: '/api/srm/paradic/selectById',
        method:'post',
        // url:'./json/paraone.json',
        // method: 'get',
        params: query
    });
};
/*不分页查询所有*/
export const slectAllPara = query => {
    return request({
        url: '/api/srm/paradic/doAll',
        method: 'post',
        // url: './json/paralist.json',
        // method: 'get',
        params: query,
    });
};

